package com.ds.infrastructure.audit.collector.entity;

import com.ds.infrastructure.audit.common.entity.KbaBehaviorWrapper;
import lombok.Data;

import javax.validation.Valid;
import javax.validation.constraints.NotEmpty;
import java.io.Serializable;
import java.util.Collections;
import java.util.List;

/**
 * 作用：
 *
 * @author WeiShaoying
 * @date 2020/7/31
 */
@Data
public class KbaBehaviorComponent implements Serializable {

    private static final long serialVersionUID = 5234798025489723902L;

    @NotEmpty(message = "behaviors不能为空")
    @Valid
    private List<KbaBehaviorWrapper> behaviors = Collections.emptyList();

}
